package com.ruoyi.biz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 课程考试题对象 biz_course_exam
 * 
 * @author ruoyi
 * @date 2021-08-24
 */
public class BizCourseExamScore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;
    private Integer courseDetailId;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Integer courseId;

    /** 试题ID */
    @Excel(name = "试题ID")
    private Integer examId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 答案 */
    @Excel(name = "答案")
    private String answer;
    private String courseName;
    private String courseDetailTitle;
    private String examTitle;

    /** 分数 */
    @Excel(name = "分数")
    private Integer score;

    /** 是否通过考试 */
    @Excel(name = "是否通过考试")
    private Integer passed;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setCourseId(Integer courseId)
    {
        this.courseId = courseId;
    }

    public Integer getCourseId()
    {
        return courseId;
    }
    public void setExamId(Integer examId)
    {
        this.examId = examId;
    }

    public Integer getExamId()
    {
        return examId;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setAnswer(String answer)
    {
        this.answer = answer;
    }

    public String getAnswer()
    {
        return answer;
    }
    public void setScore(Integer score)
    {
        this.score = score;
    }

    public Integer getScore()
    {
        return score;
    }
    public void setPassed(Integer passed)
    {
        this.passed = passed;
    }

    public Integer getPassed()
    {
        return passed;
    }

    public Integer getCourseDetailId() {
        return courseDetailId;
    }

    public void setCourseDetailId(Integer courseDetailId) {
        this.courseDetailId = courseDetailId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseDetailTitle() {
        return courseDetailTitle;
    }

    public void setCourseDetailTitle(String courseDetailTitle) {
        this.courseDetailTitle = courseDetailTitle;
    }

    public String getExamTitle() {
        return examTitle;
    }

    public void setExamTitle(String examTitle) {
        this.examTitle = examTitle;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("courseId", getCourseId())
                .append("examId", getExamId())
                .append("userId", getUserId())
                .append("answer", getAnswer())
                .append("score", getScore())
                .append("passed", getPassed())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
